<?php

/**
 * Object/EmployeEntretien.php
 */

namespace RHX\Model\Object;

class EmployeEntretien {

    public $id;
    public $matricule;
    public $date_entretien;
    public $commentaire;

    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    public function exchangeArray($data = array()) {
	$this->id		 = isset($data['id']) ? $data['id'] : null;
	$this->matricule	 = isset($data['matricule']) ? (int) $data['matricule'] : 0;
	$this->date_entretien	 = isset($data['date_entretien']) ? $data['date_entretien'] : '0000-00-00';
	$this->commentaire	 = isset($data['commentaire']) ? $data['commentaire'] : '';
    }

    public function getArrayCopy() {
	return get_object_vars($this);
    }

}

?>
